package com.hundsun.yr.universal.p2p.interactor.impl;

import android.content.Context;

import com.hundsun.mobile.zwgt.R;
import com.hundsun.yr.universal.library.view.itemview.BasicItemViewH;
import com.hundsun.yr.universal.library.view.itemview.SettingData;
import com.hundsun.yr.universal.library.view.itemview.SettingViewItemData;
import com.hundsun.yr.universal.p2p.interactor.base.BaseItemViewInteractor;

import java.util.ArrayList;
import java.util.List;


/**
 * @version V1.0
 * @Title: InvestDetailInteractorImpl.java
 * @Description: TODO(用一句话描述该文件做什么) 详情页面用到的，底部条目的设置
 * @date 2015-12-25 下午4:24:53
 * @author:hejun.shen
 * @email:shenhj15971@hundsun.com
 * @replace author:
 * @replace date:
 */
public class InvestDetailInteractorImpl implements BaseItemViewInteractor {

    private SettingViewItemData mItemViewData = null;
    private SettingData mItemData = null;

    @SuppressWarnings({"deprecation", "unchecked"})
    @Override
    public List<SettingViewItemData> getListItemData(Context context) {
        // TODO Auto-generated method stub
        List<SettingViewItemData> mListData = new ArrayList<SettingViewItemData>();


        mItemViewData = new SettingViewItemData();
        mItemData = new SettingData();
        mItemData.setTitle(context.getString(R.string.repayment_method));
        mItemData.setBackground(context.getResources().getDrawable(R.color.white));
        mItemData.setHasArrow(false);
        /**这个应该是设置网络数据的**/
        mItemData.setSubTitle(" ");
        mItemViewData.setData(mItemData);
        mItemViewData.setItemView(new BasicItemViewH(context));
        mListData.add(mItemViewData);


        mItemViewData = new SettingViewItemData();
        mItemData = new SettingData();
        mItemData.setTitle(context.getString(R.string.release_date));
        mItemData.setBackground(context.getResources().getDrawable(R.color.white));
        mItemData.setHasArrow(false);
        mItemData.setSubTitle(" ");
        mItemViewData.setData(mItemData);
        mItemViewData.setItemView(new BasicItemViewH(context));
        mListData.add(mItemViewData);

        mItemViewData = new SettingViewItemData();
        mItemData = new SettingData();
        mItemData.setTitle(context.getString(R.string.interest_mode));
        mItemData.setBackground(context.getResources().getDrawable(R.color.white));
        mItemData.setHasArrow(false);
        mItemData.setSubTitle(" ");
        mItemViewData.setData(mItemData);
        mItemViewData.setItemView(new BasicItemViewH(context));
        mListData.add(mItemViewData);


        mItemViewData = new SettingViewItemData();
        mItemData = new SettingData();
        mItemData.setTitle(context.getString(R.string.cumulative_voting));
        mItemData.setBackground(context.getResources().getDrawable(R.color.white));
        mItemData.setHasArrow(false);
        mItemData.setSubTitle(" ");
        mItemViewData.setData(mItemData);
        mItemViewData.setItemView(new BasicItemViewH(context));
        mListData.add(mItemViewData);


        mItemViewData = new SettingViewItemData();
        mItemData = new SettingData();
        mItemData.setTitle(context.getString(R.string.product_introduction));
        mItemViewData.setData(mItemData);
        mItemViewData.setItemView(new BasicItemViewH(context));
        mListData.add(mItemViewData);

        mItemViewData = new SettingViewItemData();
        mItemData = new SettingData();
        mItemData.setTitle(context.getString(R.string.borrow_suject));
        mItemViewData.setData(mItemData);
        mItemViewData.setItemView(new BasicItemViewH(context));
        mListData.add(mItemViewData);


        mItemViewData = new SettingViewItemData();
        mItemData = new SettingData();
        mItemData.setTitle(context.getString(R.string.invest_record));
        mItemData.setSubTitle(" ");
        mItemViewData.setData(mItemData);
        mItemViewData.setItemView(new BasicItemViewH(context));
        mListData.add(mItemViewData);

        mItemViewData = new SettingViewItemData();
        mItemData = new SettingData();
        mItemData.setTitle(context.getString(R.string.risk_protection));
        mItemViewData.setData(mItemData);
        mItemViewData.setItemView(new BasicItemViewH(context));
        mListData.add(mItemViewData);


        return mListData;
    }


}
